<script setup>
import { ref } from 'vue';
import axiosInstance from './axios';

let message = ref('默认值')

async function fun() {
  let promise = axiosInstance.post('http://api.uomg.com/api/rand.qinghua?format=json')
  let response = await promise
  message.value = response.data.content
}

</script>

<template>
  <div>
    <h4 v-text="message"></h4><br>
    <hr>
    <input type="button" value="按钮" @click="fun()">
  </div>
</template>

<style scoped>

</style>
